use tauri::{AppHandle, Runtime};

// 更新获取窗口的方法
#[cfg(target_os = "windows")]
pub fn set_window_shadow<R: Runtime>(_app: &AppHandle<R>, _name: &str) {
//     use window_shadows::set_shadow;
//     if let Some(window) = app.get_webview_window(name) {
//         unsafe {
//             set_shadow(&window, true).expect("Failed to set window shadow");
//         }
//     }
}
#[warn(unused_imports)]
#[cfg(not(target_os = "windows"))]
pub fn set_window_shadow<R: Runtime>(_app: &AppHandle<R>, _name: &str) {
    println!("Window shadows only supported on Windows");
}
